package main

import (
	"fmt"
	"os"

	"github.com/louloulin/dataflare/pkg/workflow/cmd"
)

func main() {
	// Check arguments
	if len(os.Args) < 2 {
		fmt.Println("Usage: run <workflow-file>")
		os.Exit(1)
	}

	// Get workflow file
	workflowFile := os.Args[1]

	// Run workflow
	err := cmd.RunWorkflow(workflowFile, "actor")
	if err != nil {
		fmt.Printf("Error: %v\n", err)
		os.Exit(1)
	}
}
